import lxml.etree as e


with open("../html/estimators.html",'rb') as f:
    data = f.read()
html = e.HTML(data)
result = e.tostring(html).decode()
# x_obj = e.HTML(result)
x_obj = e.HTML(data)
data_list = list()
for i in range(1,39):
    for j in range(1,9):
        xp = x_obj.xpath("//table/tr[%d]/td[%d]/text()" % (i, j))
        if xp:
            data_list.append(xp)
print(data_list)
# print(data_list[4][0])
